package com.linghu.springcloud.service.Impl;

import com.linghu.springcloud.bean.Member;
import com.linghu.springcloud.dao.MemberDAO;
import com.linghu.springcloud.service.MemberService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 令狐荣豪
 * @version 1.0
 */
@Service
public class MemberServiceImpl implements MemberService {

    @Resource
    private MemberDAO memberDAO;
    @Override
    public Member queryMemberById(long id) {
       return memberDAO.queryMemberById(id);
    }

    @Override
    public int save(Member member) {
        return memberDAO.save(member);
    }
}
